<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    {if $row['user_id'] neq 0}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('用户您称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input readonly class="form-control" type="text" value="{$row.nickname|htmlentities}">
        </div>
    </div>
    {/if}

    {if $row['goods_id'] neq 0}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('咨询师姓名')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input readonly class="form-control" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    {/if}

    {if $row['copartner_id'] neq 0}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('合伙人姓名')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input readonly class="form-control" type="text" value="{$row.copartner_name|htmlentities}">
        </div>
    </div>
    {/if}


    <input id="c-user_id" class="form-control" name="row[user_id]" type="hidden"
           value="{$row.user_id|htmlentities}">

    <input id="c-copartner_id" class="form-control" name="row[copartner_id]" type="hidden"
           value="{$row.copartner_id|htmlentities}">

    <input id="c-goods_id" class="form-control" name="row[goods_id]" type="hidden"
           value="{$row.goods_id|htmlentities}">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control" step="0.01" name="row[price]" type="number"
                   value="{$row.price|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="statusList" item="vo"}
                <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio"
                                                       value="{$key}" {in name="key" value="$row.status" }checked{/in}
                    /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Reason_rejection')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-reason_rejection" class="form-control" name="row[reason_rejection]" type="text"
                   value="{$row.reason_rejection|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Wechat_account')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-wechat_account" readonly class="form-control" name="row[wechat_account]" type="text"
                   value="{$row.wechat_account|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Wechat_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-wechat_name" readonly class="form-control" name="row[wechat_name]" type="text"
                   value="{$row.wechat_name|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
